package com.ruoyi.etp.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 设备管理对象 etp_employee_devices
 * 
 * @author xmj
 * @date 2025-09-12
 */
public class EtpEmployeeDevices extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** ID */
    private Long id;

    /** 员工名称 */
    @Excel(name = "员工名称")
    private String employeeName;

    /** 设备号 */
    @Excel(name = "设备号")
    private String deviceId;

    /** 设备版本号 */
    @Excel(name = "设备版本号")
    private String deviceVersion;

    /** 电量 1.低 2.中 3.高 */
    @Excel(name = "电量 1.低 2.中 3.高")
    private Long batteryLevel;

    /** 所属组织 */
    @Excel(name = "所属组织")
    private Long deptId;

    /** 最近心跳 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "最近心跳", width = 30, dateFormat = "yyyy-MM-dd")
    private Date lastHeartbeat;

    /** 是否在线 */
    @Excel(name = "是否在线")
    private Integer isOnline;

    /** 状态 0.闲置,1.离线,2.正在接待 */
    @Excel(name = "状态 0.闲置,1.离线,2.正在接待")
    private Long status;

    /** 待上传文件 */
    @Excel(name = "待上传文件")
    private Long pendingUpload;

    /** 剩余存储空间(KB) */
    @Excel(name = "剩余存储空间(KB)")
    private Long storageRemaining;

    /** 信号值 */
    @Excel(name = "信号值")
    private Long signalStrength;

    /** 录音总时长(秒) */
    @Excel(name = "录音总时长(秒)")
    private Long totalRecordingDuration;

    /** 录音次数 */
    @Excel(name = "录音次数")
    private Long recordingCount;

    /** 创建人 */
    @Excel(name = "创建人")
    private String createdBy;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createdTime;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setEmployeeName(String employeeName) 
    {
        this.employeeName = employeeName;
    }

    public String getEmployeeName() 
    {
        return employeeName;
    }

    public void setDeviceId(String deviceId) 
    {
        this.deviceId = deviceId;
    }

    public String getDeviceId() 
    {
        return deviceId;
    }

    public void setDeviceVersion(String deviceVersion) 
    {
        this.deviceVersion = deviceVersion;
    }

    public String getDeviceVersion() 
    {
        return deviceVersion;
    }

    public void setBatteryLevel(Long batteryLevel) 
    {
        this.batteryLevel = batteryLevel;
    }

    public Long getBatteryLevel() 
    {
        return batteryLevel;
    }

    public void setDeptId(Long deptId) 
    {
        this.deptId = deptId;
    }

    public Long getDeptId() 
    {
        return deptId;
    }

    public void setLastHeartbeat(Date lastHeartbeat) 
    {
        this.lastHeartbeat = lastHeartbeat;
    }

    public Date getLastHeartbeat() 
    {
        return lastHeartbeat;
    }

    public void setIsOnline(Integer isOnline) 
    {
        this.isOnline = isOnline;
    }

    public Integer getIsOnline() 
    {
        return isOnline;
    }

    public void setStatus(Long status) 
    {
        this.status = status;
    }

    public Long getStatus() 
    {
        return status;
    }

    public void setPendingUpload(Long pendingUpload) 
    {
        this.pendingUpload = pendingUpload;
    }

    public Long getPendingUpload() 
    {
        return pendingUpload;
    }

    public void setStorageRemaining(Long storageRemaining) 
    {
        this.storageRemaining = storageRemaining;
    }

    public Long getStorageRemaining() 
    {
        return storageRemaining;
    }

    public void setSignalStrength(Long signalStrength) 
    {
        this.signalStrength = signalStrength;
    }

    public Long getSignalStrength() 
    {
        return signalStrength;
    }

    public void setTotalRecordingDuration(Long totalRecordingDuration) 
    {
        this.totalRecordingDuration = totalRecordingDuration;
    }

    public Long getTotalRecordingDuration() 
    {
        return totalRecordingDuration;
    }

    public void setRecordingCount(Long recordingCount) 
    {
        this.recordingCount = recordingCount;
    }

    public Long getRecordingCount() 
    {
        return recordingCount;
    }

    public void setCreatedBy(String createdBy) 
    {
        this.createdBy = createdBy;
    }

    public String getCreatedBy() 
    {
        return createdBy;
    }

    public void setCreatedTime(Date createdTime) 
    {
        this.createdTime = createdTime;
    }

    public Date getCreatedTime() 
    {
        return createdTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("employeeName", getEmployeeName())
            .append("deviceId", getDeviceId())
            .append("deviceVersion", getDeviceVersion())
            .append("batteryLevel", getBatteryLevel())
            .append("deptId", getDeptId())
            .append("lastHeartbeat", getLastHeartbeat())
            .append("isOnline", getIsOnline())
            .append("status", getStatus())
            .append("pendingUpload", getPendingUpload())
            .append("storageRemaining", getStorageRemaining())
            .append("signalStrength", getSignalStrength())
            .append("totalRecordingDuration", getTotalRecordingDuration())
            .append("recordingCount", getRecordingCount())
            .append("createdBy", getCreatedBy())
            .append("createdTime", getCreatedTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
